package pjwstk.jps.ast.terminal;

import pjwstk.jps.ast.Expression;
import pjwstk.jps.visitor.ASTVisitor;

/**
 * @author s9111_s10304
 *
 */
public class NameTerminal  extends Expression implements INameTerminal
{
	private String name;

	public NameTerminal(String aName) {
		name = aName;
	}
	
	@Override
	public Object getValue() {
		return this;
	}

	@Override
	public void accept(ASTVisitor visitor) {
		visitor.visitNameTerminal(this);
	}

	@Override
	public String getName() {
		return name;
	}
}